package com.example.demo20250926.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author sky
 * @date 2025年10月31日 14:27
 * @description
 * @since 1.0.0
 */
@Component
@Slf4j
public class KafkaConsumer{
    @KafkaListener(topics = "topic-demo", groupId = "group-demo")
    public void receive(String message){
        log.info("### 收到消息：{}",message);
    }
}
